<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:68:"D:\wamp\www\zz\tp5\public/../application/index\view\index\index.html";i:1497882972;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="keywords" content="一点资讯，新闻资讯应用，头条，热点，科技，娱乐，健康，时尚，家居，教育，旅行，两性，美食，星座，阅读，个性化新闻">
    <meta name="description"
          content="一点资讯是一款高度智能的新闻资讯应用，通过它你可以搜索并订阅任意关键词，它会自动帮你聚合整理并实时更新相关资讯，同时会智能分析你的兴趣爱好，为你推荐感兴趣的内容。看新闻资讯，一点就够了！">
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
    <meta name="renderer" content="webkit">
    <meta name="robots" content="all">
    <meta property="qc:admins" content="16552431616114116210566375">
    <link rel="stylesheet" type="text/css" href="/static/public/css/bootstrap.min.css" />
    <title>总评网</title>
    <link rel="stylesheet" type="text/css" href="/static/public/css/index-90c796d4.css" />
    </head>
<body class="page-index">                  
<div class="header-search ">
    <div class="content"><a class="logo iconfont icon-logo"></a>
        <div class="suggestion-search-box"><input placeholder="大家都在搜:江苏幼儿园爆炸" value="" class="input input-search"
                                                  data-placeholder="大家都在搜:江苏幼儿园爆炸">
            <div class="suggestion hot-search-suggestion">
                <div class="inner-block-box">

                    <a class="item item-1"
                       href="http://www.yidianzixun.com/channel/w/%E6%B1%9F%E8%8B%8F%E5%B9%BC%E5%84%BF%E5%9B%AD%E7%88%86%E7%82%B8?searchword=%E6%B1%9F%E8%8B%8F%E5%B9%BC%E5%84%BF%E5%9B%AD%E7%88%86%E7%82%B8">
                        <div class="float-left index icon iconfont icon-1"></div>
                        <div class="item-content">
                            <div class="hot-search-word">江苏幼儿园爆炸</div>
                        </div>
                    </a>

                </div>
            </div>
        </div>

        <button class="btn btn-search">搜 索</button>
        <div class="float-right header-links">
            <?php if(!session('?tel')): ?>
            <button type="button" class="tn btn-login js-to-login " data-toggle="modal" data-target="#exampleModal" id="dengru">登录</button>
            <?php else: ?>
       <div class="dropdown">
              <a id="dLabel" data-target="#" href="http://example.com" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
            <?php if(session('?name')): ?>
               <?php echo session('name'); else: ?>
               <?php echo session('tel'); endif; ?>
              </a>
                <ul class="dropdown-menu" aria-labelledby="dropdownMenu1" style="min-width: 1px">
                    <li><a href="#">个人中心</a></li>
                    <li><a href="#">添加频道</a></li>
                    <li role="separator" class="divider"></li>
                    <li><a href="<?php echo url('index/Index/Log'); ?>">退出</a></li>
                  </ul>
            </div>
            <?php endif; ?>
        </div>
    </div>
</div>
<!-- 搜索 -->
<div class="header-channel-nav js-header-can-switch ">
    <div class="content">
        <div class="channel-nav">
            <div class="list">
                <a data-index="0" href="http://www.yidianzixun.com/" data-channelid="best"
                   class="item active">首页</a>
                <a data-index="1"
                   href="http://www.yidianzixun.com/channel/hot"
                   data-channelid="hot" class="item ">要闻</a>
                <a data-index="2"
                   href="http://www.yidianzixun.com/medialist"
                   data-channelid="undefined"
                   class="item ">一点号</a><a
                    data-index="3" href="http://www.yidianzixun.com/channel/u13746" data-channelid="12155051282"
                    class="item ">视频</a>
                <a data-index="4" href="http://www.yidianzixun.com/channel/u743"
                   data-channelid="12155051058" class="item ">扬州</a>
                <a data-index="5"
                   href="http://www.yidianzixun.com/channel/u12131"
                   data-channelid="12155051202"
                   class="item ">段子</a>
            </div>
        </div>
    </div>
</div>
<div class="main index-main">
    <div class="aside">
        <div class="widget-box widget-imedia-article-box">
            <div class="widget widget-imedia-article">
                <div class="content news-list">

                    <a class="doc style-small-image style-content-middle item-0 "
                       href="http://www.yidianzixun.com/article/0Gc9IkqR">
                        <div class="doc-image-small-wrapper">
                            <img class="doc-image-small" src="/static/public/img/image.php">
                        </div>
                        <div class="doc-content">
                            <div class="doc-content-inline">
                                <div class="doc-title">这样的隆胸假体，可能会致癌？连许多医生都不知道！</div>
                                <div class="doc-info">
                                    <div class="source">果壳网</div>
                                    <div class="date">1小时前</div>
                                </div>
                            </div>
                        </div>
                    </a>
                </div>
            </div>
        </div>
        <div class="widget-box widget-hot-article-box">
            <div class="widget widget-hot-article">
                <h4>热文排行</h4>
                <div class="content news-list">

                    <a class="doc item-0 " href="http://www.yidianzixun.com/article/0Gbe9ElS">
                        <div class="index iconfont icon-1"></div>
                        <div class="doc-title">人民日报：多数网民支持关停违规追星号</div>
                    </a>

                </div>
            </div>
        </div>
        <div class="widget-box widget-about-yidian-box">
            <div class="widget widget-about-yidian">
                <h4>关于一点</h4>
                <div class="content">
                    <div class="official-info">
                        <p>京ICP证140123号</p>
                        <p>京网文[2015]0377-157号</p>
                        <p><a href="http://www.miibeian.gov.cn/" target="_blank">京ICP备13041805号-1</a></p>
                        <a href="http://static.yidianzixun.com/modules/docs/yidian_ypxxfw.pdf" target="_blank">互联网药品信息服务资格证书</a>
                        <a href="http://www.12377.cn/" target="_blank">中国互联网举报中心网址: http://www.12377.cn</a>
                        <a href="http://www.12377.cn/node_548446.htm" target="_blank">"网络举报"移动客户端下载链接:
                            http://www.12377.cn/node_548446.htm</a>
                        <p><a target="_blank"
                              href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11010802020163"><span
                                class="icon-jgw"></span><span>京公网安备 11010802020163号</span></a></p>
                        <a href="http://www.12377.cn/" target="_blank" class="icon-12377">
                            <img src="/static/public/img/12377-15cc24e5.png">
                            <h5>网上有害信息举报专区</h5>
                            <p>举报电话：12377</p>
                        </a>
                        <a href="http://www.bjjubao.org/" target="_blank" class="icon-jubao">
                            <img src="/static/public/img/jubao-8923760b.png">
                            <h5>北京互联网违法和不良信息举报中心</h5>
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- 轮播图     -->
    <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
        <!-- Indicators -->
        <ol class="carousel-indicators">
            <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
            <li data-target="#carousel-example-generic" data-slide-to="1"></li>
            <li data-target="#carousel-example-generic" data-slide-to="2"></li>
        </ol>

        <!-- Wrapper for slides -->
        <div class="carousel-inner" role="listbox">

         
            <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;if($v['home'] == 0): ?>
            <div class="item active" >
            <?php else: ?>
            <div class="item">
            <?php endif; ?>
                <img src="/static/public/img/<?php echo $v['iname']; ?>" alt="...">
                <div class="carousel-caption">
                    <span>11</span>
                </div>
            </div>
            <?php endforeach; endif; else: echo "" ;endif; ?>

        </div>

        <!-- Controls -->
        <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
            <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
            <span class="sr-only">Previous</span>
        </a>
        <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
            <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
            <span class="sr-only">Next</span>
        </a>
    </div>

    <!-- 内容 -->
    <div class="channel-news channel-news-0">
    <?php if(is_array($article) || $article instanceof \think\Collection || $article instanceof \think\Paginator): $i = 0; $__LIST__ = $article;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
        <a class="item doc style-small-image style-content-middle" href="">
           
            <div class="doc-image-small-wrapper">
                <div class="doc-image-box">
                    <img class="doc-image doc-image-small"
                         src="/static/public/img/<?php echo $vo['iname']; ?>">


                </div>
            </div>
            <div class="doc-content">
                <div class="doc-content-inline">
                    <div class="doc-title"><?php echo $vo['aname']; ?></div>
                    <div class="doc-info">


                        <span class="source"><?php echo $vo['nickname']; ?></span>
                        <?php if(is_array($discuss) || $discuss instanceof \think\Collection || $discuss instanceof \think\Paginator): $i = 0; $__LIST__ = $discuss;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$pl): $mod = ($i % 2 );++$i;?>
                        <span class="comment-count"><?php echo $pl; ?></span>
                        <?php endforeach; endif; else: echo "" ;endif; ?>
                        <span class="date"><?php echo date("Y-m-d H:i",$vo['regtime']); ?></span>
                        <div class="doc-remove">不感兴趣<span class="iconfont icon-close-half"></span></div>
                    </div>
                </div>
            </div>
        </a>
    <?php endforeach; endif; else: echo "" ;endif; ?>

        <a class="item doc style-small-image style-content-middle" href="http://www.yidianzixun.com/article/0GbGRlxm"
           target="_blank" data-docid="0GbGRlxm">
            <div class="doc-image-small-wrapper">
                <div class="doc-image-box">
                    <img class="doc-image doc-image-small"
                         src="/static/public/img/image(9).php">


                </div>
            </div>
            <div class="doc-content">
                <div class="doc-content-inline">
                    <div class="doc-title">哪位国家领导人亲自出面“挡驾”不让儿子调进北京?</div>
                    <div class="doc-info">


                        <span class="source">国家人文历史</span>

                        <span class="comment-count">9评</span>
                        <span class="date">2分钟前</span>
                        <div class="doc-remove">不感兴趣<span class="iconfont icon-close-half"></span></div>
                    </div>
                </div>
            </div>
        </a>


    </div>
</div>
<div class="mask"></div>
        <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
          <div class="modal-dialog" role="document" style="display: block">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true"></span></button>
                <h4>登录</h4>
              </div>
              <div class="modal-body">
                <form action="<?php echo url('index/Index/sign'); ?>" method="post" accept-charset="utf-8">
                  <div class="form-group">
                    <label for="recipient-name" class="control-label">手机号码:</label>
                    <input type="text" class="form-control" id="recipient" name="tel" placeholder="手机号" maxlength='11'>
                  </div>
                  <div class="form-group">
                    <label for="message-text" class="control-label">密码:</label>
                    <input type="password" class="form-control" id="recipient-name2" name="pwd" placeholder="密码">
                  </div>
                  <div class="modal-footer">
                    <input type="submit" name="" class="btn btn-default" value="登录">
                    <!-- <button type="button" class="btn btn-default" data-dismiss="modal">登录</button> -->
                    <button  type="button" class="btn btn-primary" data-toggle='modal' id="btn2">去注册</button>  
                  </div>
                </form>
              </div>
            </div>
          </div>

          <!-- 注册 -->
            <div class="modal-dialog" role="document" id="dier" style="display: none">
                <div class="modal-content">
                  <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true"></span></button>
                    <h4>注册</h4>
                  </div>
                  <div class="modal-body">
                    <form action="<?php echo url('index/Index/save'); ?>" method="post" accept-charset="utf-8" name="regForm">    
                      <div class="form-group">
                        <label for="recipient-name" class="control-label">手机号码:</label>
                        <input type="text" class="form-control" id="recipient-name" name="tel" placeholder="手机号" maxlength='11' onblur="checkphone()"><span id="box"></span>
                      </div>
                      <div class="form-group">
                        <label for="message-text" class="control-label">密码:</label>
                        <input type="password" class="form-control" id="ient-name" name="pwd" placeholder="密码" onblur="checkPass()"><span id="pas"></span>
                      </div>
                      <div class="form-group">
                        <label for="message-text" class="control-label">重复密码:</label>
                        <input type="password" class="form-control" id="ient-name" name="repwd" placeholder="密码" onblur="checkRePass()"><span id="repas"></span>
                      </div>
                      <input type="hidden" name="time" value="<?php echo time(); ?>">
                      <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">登录</button>
                        <!-- <button type="button" class="btn btn-primary" data-toggle='modal'>注册</button>   -->
                        <input type="submit" class="btn btn-primary" id="btm" value="注册" >
                      </div>
                    </form>
                  </div>
                </div>
              </div>  
         </div>
<script type="text/javascript" src="/static/public/js/jquery.min.js"></script>
<script type="text/javascript" src="/static/public/js/bootstrap.js"></script>

<script>


$(function(){
    $('#dengru').click(function(){
        $(".modal-dialog").css('display','block');
        $("#dier").css('display','none');
        // console.log(<?php echo url('index/Index/add'); ?>)
    })
});
 $(function(){  
      $("#btn2").click(function(){  
         $(".modal-dialog").css('display','none');
         $("#dier").css('display','block');
   });     
});    
// function checkphone(){
//         var tel = document.regForm.tel.value;
//         var box = document.getElementById('box');
//         if (tel.match(/^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/) == null) {
//             box.innerHTML = '* 手机号码不正确!';
//             box.style.color = '#f00';
//             return false;
//         } else{
//             box.innerHTML = '* 手机号码正确!';
//             box.style.color = '#0a0';
//             return true;
//         }
//     }
//   // 验证 密码输入
// function checkPass(){
//     var pwd = document.regForm.pwd.value;
//     var pas = document.getElementById('pas');
//     if (pwd.length < 6 || pwd.length > 18) {
//         pas.innerHTML = '* 密码长度不合法!';
//         pas.style.color = '#f00';
//         return false;
//     } else{
//         pas.innerHTML = '* 验证通过!';
//         pas.style.color = '#0a0';
//         return true;
//     }
// }
//  // 验证 密码输入
// function checkRePass(){
//     var pwd = document.regForm.pwd.value;
//     var repwd = document.regForm.repwd.value;
//     var repas = document.getElementById('repas');
//     if (pwd !== repwd) {
//         repas.innerHTML = '* 两次密码不一致!';
//         repas.style.color = '#f00';
//         return false;
//     } else{
//         repas.innerHTML = '* 验证通过!';
//         repas.style.color = '#0a0';
//         return true;
//     }
// }
//  function checkForm(){
//             return checkphone() && checkPass() && checkRePass();
//         }

</script>
</body>
</html>